#ifndef CLEARDATASERVICE_H
#define CLEARDATASERVICE_H

#include <QObject>


namespace Service {

class ClearDataService : public QObject
{
    Q_OBJECT
private:
    explicit ClearDataService(QObject *parent = 0);

private:
    static ClearDataService *m_instance;

signals:
    void notifyDataCleared();
    void conversationDataCleared();
    void contactDataCleared();
    void accountDataCleared();

private:
    void init();
    void setConnection() const;

private slots:
    void onLogouted();

public:
    static ClearDataService *instance(QObject *parent = 0);
};

} // namespace Service

#endif // CLEARDATASERVICE_H
